home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Buyer 1997 December
/
Computer Buyer December 1997.iso
/
Internet
/
Demon
/
TURNPIKE.1
/
UNIVERSE.MDM
< prev
next >
Wrap
Text File
|
1997-06-20
|
9KB
|
321 lines
;==caXmPMO7RRCh0zV4Bfh0ng== UNIVERSE.MDM 20 Jun 1997 14:16:24
IDENT Universal modem script
;
; We advise you NOT to edit this file.
;
; Should you wish to alter the way in which your modem is driven then
; you should in the first instance use a specific modem driver file.
; Instructions for selecting a new modem file can be found in the Help
; for the Connect program.
;
; If no specific file is available then you can use a "generic" modem
; driver file - again the Help will guide you in your choice.
;
; If you wish to customize the modem driving still further then you
; may edit one of the specific or generic files. You will find that
; they contain considerable information to guide you.
;
; Editing this file is unnecessarily complex and may prevent you using
; it in the future with other modems. Please follow our advice!
;
SET COMSPEED=57600
;
; INITIALISE
;
RESET 1
WAIT 2
;
; See if the modem is there at all
;
SEND 'AT\r'
;
SELECT 3 'Modem not responding'
CASE 'OK'
TEXT 'Modem is responding...'
ENDSELECT
;
SHOW OFF
;
; Try to deal specially with any Multitech modem
;
; First say use factory defaults and then set to factory defaults
;
SEND 'AT&F8&F\r'
SELECT 3 'Modem not responding'
CASE 'OK'
; Try to make the Multitech specific settings
SEND 'ATQ0X4&E4&E13&C1&D3%E0S0=0&Q0\r'
SELECT 3 'Modem not responding'
CASE 'OK'
NOTE 'Multitech modem recognised and initialised'
JUMP INITDONE
CASE 'ERROR'
NOTE 'Probably not a Multitech'
ENDSELECT
CASE 'ERROR'
NOTE 'Probably not a Multitech'
ENDSELECT
;
; Set factory defaults,
; use factory profile 1 for hardware flow control, if available
; otherwise use profile 0
;
SEND 'AT&F1\r'
SELECT 3 'Modem not responding'
CASE 'OK'
; Profile 1 accepted, make sure that it is a USR or clone
SEND 'AT&B1&H1&K2&M4&R2\r'
SELECT 3 'Modem not responding'
CASE 'OK'
NOTE 'Factory profile 1 loaded for USR hardware flow control'
CASE 'ERROR'
SEND 'AT&F\r'
SELECT 3 'Modem not responding'
CASE 'OK'
NOTE 'Factory profile 0 loaded'
CASE 'ERROR'
NOTE 'Cannot set factory profile'
FAIL
ENDSELECT
ENDSELECT
CASE 'ERROR'
SEND 'AT&F\r'
SELECT 3 'Modem not responding'
CASE 'OK'
NOTE 'Factory profile 0 loaded'
CASE 'ERROR'
NOTE 'Cannot set factory profile'
FAIL
ENDSELECT
ENDSELECT
;
; Try to get DCD to show state of carrier
;
SEND 'AT&C1\r'
SELECT 3 'Modem not responding'
CASE 'OK'
NOTE 'DCD will reflect state of carrier'
CASE 'ERROR'
NOTE 'DCD might not reflect the state of carrier'
NOTE 'Connect may not be able to recognise if the line drops'
ENDSELECT
;
; Try to get modem to hangup when DTR is toggled
; if possible reset as well when DTR toggled
;
SEND 'AT&D3\r'
SELECT 3 'Modem not responding'
CASE 'OK'
NOTE 'DTR will make modem reset'
CASE 'ERROR'
SEND 'AT&D2\r'
SELECT 3 'Modem not responding'
CASE 'OK'
NOTE 'DTR will make modem hang up'
CASE 'ERROR'
NOTE 'Modem might not hang up if +++ escape is not recognised'
ENDSELECT
ENDSELECT
;
; Try to prevent modem answering incoming calls
;
SEND 'ATS0=0\r'
SELECT 3 'Modem not responding'
CASE 'OK'
NOTE 'Auto-answer disabled'
CASE 'ERROR'
NOTE 'Modem might answer before dialing or after hangup'
ENDSELECT
;
; Check for special modems by their ATI response
;
SEND 'ATI3\r'
SELECT 3 'Modem not responding'
CASE ' 68356 '
; Try to make the Motorola 68345 specific settings
SEND 'ATY0&R0\\V4\r'
SELECT 3 'Modem not responding'
CASE 'OK'
NOTE 'Motorola 68356 based modem recognised and initialised'
JUMP INITDONE
CASE ERROR
NOTE 'Probably not a Motorola 3400'
ENDSELECT
CASE 'ERROR'
SEND 'ATI2\r'
SELECT 3 'Modem not responding'
CASE ' GSM:DP'
; Try to make Nokia data card specific settings
SEND 'ATS34=2\r'
SELECT 3 'Modem not responding'
CASE 'OK'
NOTE 'Nokia data card modem recognised and initialised'
JUMP INITDONE
CASE ERROR
NOTE 'Probably not a Nokia'
ENDSELECT
CASE 'OK'
CASE 'ERROR'
ENDSELECT
CASE 'OK'
SEND 'ATI4\r'
SELECT 3 'Modem not responding'
CASE 'UMC '
; UMC V.32bis/FAX/VOICE has W1 set, must avoid setting S95
NOTE 'UMC based modem recognised and initialised'
JUMP INITDONE
CASE 'OK'
CASE 'ERROR'
ENDSELECT
ENDSELECT
;
; Try to make modem show extended CONNECT responses
;
; First use the older Rockwell like method
;
SEND 'ATS95=46\r'
SELECT 3 'Modem not responding'
CASE 'OK'
NOTE 'Extended responses enabled'
CASE 'ERROR'
NOTE 'Probably not a Rockwell modem'
ENDSELECT
;
; Now use the AT&T HMS like method
;
SEND 'ATW1\r'
SELECT 3 'Modem not responding'
CASE 'OK'
NOTE 'Extended responses enabled'
CASE 'ERROR'
NOTE 'Probably not an AT&T HMS modem'
ENDSELECT
;
; Now use the newer Rockwell like method
;
SEND 'AT\\V1\r'
SELECT 3 'Modem not responding'
CASE 'OK'
NOTE 'Extended responses enabled'
CASE 'ERROR'
NOTE 'Probably not a newer Rockwell modem'
ENDSELECT
;
; If all three of the above fail ERROR
; then the modem might only show basic CONNECT response
;
; Deal specially with the BT Ignition or Motorola BitSurfr ISDN TA
;
SEND 'AT%A2=95\r'
SELECT 3 'Modem not responding'
CASE 'OK'
NOTE 'Async-to-sync PPP selected'
CASE 'ERROR'
NOTE 'Probably not a BT Ignition'
ENDSELECT
;
ENDJUMP INITDONE
;
SHOW ON
;
TEXT 'Ready to dial...'
;
PULSE
TEXT 'Pulse...'
WAIT 1
SEND "ATDP%pabx%"
;
; Sent:
; DP - Pulse dial
;
WAIT 1 "%pabx%"
SHOW OFF
SEND "%carrier%"
WAIT 1 "%carrier%"
SHOW ON
SEND "%phone%\r"
WAIT 1 "%phone%\r"
REPORT ON
SELECT 60 'Failed to connect'
CASE 'CONNECT'
NOTE 'Connected successfully'
CASE 'BUSY'
NOCHARGE
NOTE 'Remote modem is giving a busy signal'
FAIL
CASE 'NO ANSWER'
NOCHARGE
NOTE 'Remote modem was ringing but did not answer the call'
FAIL
CASE 'NO CARRIER'
NOTE 'Failed to connect'
FAIL
CASE 'NO DIALTONE'
NOCHARGE
TEXT 'No dial tone, so cannot dial'
FAIL
CASE 'NO DIAL TONE'
NOCHARGE
TEXT 'No dial tone, so cannot dial'
FAIL
ENDSELECT
;
TONE
TEXT 'Tone...'
WAIT 1
SEND "ATDT%pabx%"
;
; Sent:
; DT - Touch-Tone dial
;
WAIT 1 "%pabx%"
SHOW OFF
SEND "%carrier%"
WAIT 1 "%carrier%"
SHOW ON
SEND "%phone%\r"
WAIT 1 "%phone%\r"
REPORT ON
SELECT 60 'Failed to connect'
CASE 'CONNECT'
NOTE 'Connected successfully'
CASE 'BUSY'
NOCHARGE
NOTE 'Remote modem is giving a busy signal'
FAIL
CASE 'NO ANSWER'
NOCHARGE
NOTE 'Remote modem was ringing but did not answer the call'
FAIL
CASE 'NO CARRIER'
NOTE 'Failed to connect'
FAIL
CASE 'NO DIALTONE'
NOCHARGE
TEXT 'No dial tone, so cannot dial'
FAIL
CASE 'NO DIAL TONE'
NOCHARGE
TEXT 'No dial tone, so cannot dial'
FAIL
ENDSELECT
;
HANGUP
TEXT 'Hanging up the phone...'
WAIT 2
SEND '+++'
;
; Sent:
; +++ - Return to command mode
;
WAIT 2
SEND 'ATH\r'
;
; Sent:
; H - Hang up (go on hook)
;
WAIT 1
RESET 1
;
; ** ends